/*
 * @Author: zhs
 * @Date: 2024-01-03 13:28:30
 * @LastEditTime: 2024-01-03 15:11:47
 * @LastEditors: your name
 * @Description: 
 * @FilePath: \vue-project\src\stores\index.ts
 */
import type { App } from 'vue'
import { createPinia } from 'pinia'
// import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import piniaPluginPersistedstate from 'pinia-plugin-persist'


const store = createPinia()

store.use(piniaPluginPersistedstate)


export const setupStore = (app: App<Element>) => {
  app.use(store)
}

export { store }
